/*动态改变根元素字体大小*/
function recalc() {
	var H = document.documentElement.clientHeight;
	var W = document.documentElement.clientWidth;
	if((H / W) < (1080 / 1920)) {
		if(!H) return;
		document.documentElement.style.fontSize = 20 * (H / 1080) + 'px';
	} else {
		if(!W) return;
		document.documentElement.style.fontSize = 20 * (W / 1920) + 'px';
	}
}

function initRecalc() {
	recalc();
	var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
	if(!document.addEventListener) return;
	window.addEventListener(resizeEvt, recalc, false);
	document.addEventListener('DOMContentLoaded', recalc, false); 
}
initRecalc();
//改变窗口大小重新加载页面（存在兼容性问题待解决====>360）
window.onresize = function(){
	window.location.reload();
}
$('.DB_tab25').DB_tabMotionBanner({
	key: 'b28551',
	autoRollingTime: 10000,
	bgSpeed: 500,
	motion: {
		//首页
		DB_1_1: { top: -50, opacity: 0, speed: 1000, delay: 500 },
		DB_1_2: { top: -50, opacity: 0, speed: 1000, delay: 1000 },
		DB_1_3: { top: -50, opacity: 0, speed: 1000, delay: 1500 },
		//公司简介
		DB_2_1: { top: -50, opacity: 0, speed: 1000, delay: 500 },
		DB_2_2: { left: -250, opacity: 0, speed: 1000, delay: 1000 },
		DB_2_3: { left: 250, opacity: 0, speed: 1000, delay: 1500 },
		//企业文化
		DB_3_1: { top: -50, opacity: 0, speed: 1000, delay: 500 },
		DB_3_2: { top: 50, opacity: 0, speed: 1000, delay: 1000 },
		DB_3_3: { top: 100, opacity: 0, speed: 1000, delay: 1500 },
		//解决方案
		DB_4_1: { top: -50, opacity: 0, speed: 1000, delay: 500 },
		DB_4_2: { top: 0, opacity: 0, speed: 1000, delay: 1000 },
		//（顶部）
		DB_4_3: { top: -50, opacity: 0, speed: 1000, delay: 1500 },
		DB_4_4: { top: -50, opacity: 0, speed: 1000, delay: 1500 },
		//（左边）
		DB_4_5: { left: -100, opacity: 0, speed: 1000, delay: 2000 },
		DB_4_6: { left: -100, opacity: 0, speed: 1000, delay: 2400 },
		DB_4_7: { left: -100, opacity: 0, speed: 1000, delay: 2800 },
		DB_4_8: { left: -100, opacity: 0, speed: 1000, delay: 3200 },
		DB_4_9: { left: -100, opacity: 0, speed: 1000, delay: 3600 },
		//（右边）
		DB_4_10: { left: 100, opacity: 0, speed: 1000, delay: 2000 },
		DB_4_11: { left: 100, opacity: 0, speed: 1000, delay: 2400 },
		DB_4_12: { left: 100, opacity: 0, speed: 1000, delay: 2800 },
		DB_4_13: { left: 100, opacity: 0, speed: 1000, delay: 3200 },
		DB_4_14: { left: 100, opacity: 0, speed: 1000, delay: 3600 },
		//成功案例
		DB_5_1: { top: -50, opacity: 0, speed: 1000, delay: 500 },
		DB_5_2: { top: -100, opacity: 0, speed: 1000, delay: 1000 },
		DB_5_3: { top: -100, opacity: 0, speed: 1000, delay: 1500 },
		DB_5_4: { top: -100, opacity: 0, speed: 1000, delay: 1500 },
		//新闻快讯
		DB_6_1: { top: -50, opacity: 0, speed: 1000, delay: 500 },
		DB_6_2: { left: -100, opacity: 0, speed: 1000, delay: 1000 },
		DB_6_3: { left: 100, opacity: 0, speed: 1000, delay: 1000 },
		//联系我们
		DB_7_1: { top: -50, opacity: 0, speed: 1000, delay: 500 },
		DB_7_2: { top: -50, opacity: 0, speed: 1000, delay: 1000 },
		DB_7_3: { left: -100, opacity: 0, speed: 1000, delay: 1500 },
		DB_7_4: { left: 100, opacity: 0, speed: 1000, delay: 1500 },
		end: null
	}
})